package com.haredot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_authorize_user")
public class AuthorizeUser {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 支付宝用户ID
     */
    @TableField(value = "alipay_user_id")
    private String alipayUserId;

    /**
     * 微信用户ID
     */
    @TableField(value = "wx_user_id")
    private String wxUserId;

    /**
     * QQ用户ID
     */
    @TableField(value = "qq_user_id")
    private String qqUserId;

    /**
     * 新浪用户ID
     */
    @TableField(value = "sina_user_id")
    private String sinaUserId;

    /**
     * github 用户ID
     */
    @TableField(value = "github_user_id")
    private String githubUserId;

    /**
     * 系统用户ID
     */
    @TableField(value = "user_id")
    private Long userId;
}